package com.dlwx.parttimetalent.adapter;

import android.content.Context;
import android.widget.RadioButton;

import com.dlwx.parttimetalent.R;
import com.dlwx.parttimetalent.bean.IntentClassifyBean;

/**
 * Created by Administrator on 2017/12/19.
 */

public class LabelIndustry1Adapter extends ListBaseAdapter<IntentClassifyBean.BodyBean.ChildBeanX>{
    private Context context;
    public LabelIndustry1Adapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.tv_label_grey_select;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        IntentClassifyBean.BodyBean.ChildBeanX bean = getDataList().get(position);
        RadioButton tvName = holder.getView(R.id.tv_name);
        tvName.setText(bean.getChildname());
        if(bean.isChecked()){
            tvName.setChecked(true);
        }else{
            tvName.setChecked(false);
        }
    }
}
